package org.jeecg.modules.demo.stock.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.persistence.Transient;

/**
 * @Description: 股票k线图
 * @Author: jeecg-boot
 * @Date:   2022-01-10
 * @Version: V1.0
 */
@Data
@TableName("tb_stock_k")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="tb_stock_k对象", description="股票k线图")
public class TbStockK implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private java.lang.String id;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private java.lang.String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private java.util.Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private java.lang.String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private java.util.Date updateTime;
	/**所属部门*/
    @ApiModelProperty(value = "所属部门")
    private java.lang.String sysOrgCode;
	/**股票*/
	@Excel(name = "股票", width = 15, dictTable = "tb_stock_code", dicText = "name", dicCode = "id")
	@Dict(dictTable = "tb_stock_code", dicText = "name", dicCode = "id")
    @ApiModelProperty(value = "股票")
    private java.lang.String stockId;

    /** 股票名称 */
    @Transient
    @TableField(exist = false)
    private String  stockName;
	/**时间*/
	@Excel(name = "时间", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "时间")
    private java.util.Date dateTime;
	/**开盘*/
	@Excel(name = "开盘", width = 15)
    @ApiModelProperty(value = "开盘")
    private java.lang.Double opening;
	/**收盘*/
	@Excel(name = "收盘", width = 15)
    @ApiModelProperty(value = "收盘")
    java.lang.Double closing;
	/**最高*/
	@Excel(name = "最高", width = 15)
    @ApiModelProperty(value = "最高")
    java.lang.Double hig;
	/**最低*/
	@Excel(name = "最低", width = 15)
    @ApiModelProperty(value = "最低")
    java.lang.Double lowest;
	/**涨跌幅*/
	@Excel(name = "涨跌幅", width = 15)
    @ApiModelProperty(value = "涨跌幅")
    private java.lang.String price;
	/**涨跌额*/
	@Excel(name = "涨跌额", width = 15)
    @ApiModelProperty(value = "涨跌额")
    private java.lang.String amount;
	/**成交量*/
	@Excel(name = "成交量", width = 15)
    @ApiModelProperty(value = "成交量")
    java.lang.Double turnover;
	/**成交额*/
	@Excel(name = "成交额", width = 15)
    @ApiModelProperty(value = "成交额")
    java.lang.Double gmv;
	/**振幅*/
	@Excel(name = "振幅", width = 15)
    @ApiModelProperty(value = "振幅")
    java.lang.Double swing;
	/**换手率*/
	@Excel(name = "换手率", width = 15)
    @ApiModelProperty(value = "换手率")
    java.lang.Double tun;
	/**备注*/
	@Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private java.lang.String remark;
}
